export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/login',
      },
    ],
  },

  {
    path: '/',
    component: '../layouts/BasicLayout',
    // authority: ['admin', 'user'],
    routes: [
      {
        path: '/',
        redirect: '/admin',
      },
      {
        path: '/normal-table',
        name: '数据展示',
        secondLevelTitle: '设备接入服务列表',
        component: './NormalTable',
      },
      {
        path: '/customer',
        name: '客户管理',
        component: './Customer',
      },
      {
        name: 'antd实验',
        path: '/antd-test',
        component: './AntdTest',
      },
      {

        name: '',
        path: '/recharts',
        component: './Recharts',
      }, {
        name: '实验',
        path: '/normal-test',
        component: './NormalTest',
        routes: [
          {
            name: '实验',
            path: '/normal-test/:name',
            component: './NormalTest/Children',
          }
        ]

      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
